package com.shtel.bss.saas.tenant.mapper;

import com.shtel.bss.saas.core.data.common.mapper.IBaseMapper;
import org.springframework.stereotype.Repository;
import  com.shtel.bss.saas.tenant.entity.SysTenant;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * sys_tenant mapper
 * @author xiezhiwei 2020-02-05 21:29
 */
@Repository
public interface SysTenantMapper extends IBaseMapper<SysTenant> {
    /**
     * 查询租户
     * @param sysTenant
     * @return
     */
    List<SysTenant> selectEntity(SysTenant sysTenant);
    /**
     * 根据租户ID查询租户
     * @param tenantId
     * @return
     */
    SysTenant selectEntityByTenantId(@Param(value = "tenantId") Long tenantId);

    void updateEntity(SysTenant sysTenant);

    List<SysTenant> selectEntityByAuthId(Long authId);

    List<SysTenant> selectEntityByAuthIdNot(Long authId);
}